package com.massimilla.rpg;

public class Player {
	// Declaration of player attributes
	protected String name;
	private int max_hp;
	private int max_mp;
	private int mp_str;
	private int str;
	private int hp;
	private int mp;
	private int def;
	private int lvl;
	private int xp;
	private int gold;
	private int hpp = 0;
	private int mpp = 0;
	private int potions = hpp + mpp;

	// Creation of getters and setters of private attributes
	void setStr(int temp_str) {
		str = temp_str;
	}

	int getStr() {
		return str;
	}

	void setHp(int temp_hp) {
		hp = temp_hp;
	}

	int getHp() {
		return hp;
	}

	void setMp(int temp_mp) {
		mp = temp_mp;
	}

	int getMp() {
		return mp;
	}

	void setDef(int temp_def) {
		def = temp_def;
	}

	int getDef() {
		return def;
	}

	void setLvl(int temp_lvl) {
		temp_lvl = 1;
		lvl = temp_lvl;
	}

	int getLvl() {
		return lvl;
	}

	void setName(String temp_name) {
		name = temp_name;
	}

	String getName() {
		return name;
	}

	void setMax_hp(int temp_max_hp) {
		max_hp = temp_max_hp;
	}

	int getMax_hp() {
		return max_hp;
	}

	void setMax_mp(int temp_Max_mp) {
		max_mp = temp_Max_mp;
	}

	int getMax_mp() {
		return max_mp;
	}

	void setXp_str(int temp_xp) {
		xp = temp_xp;
	}

	int getXp() {
		return xp;
	}

	void setGold(int temp_gold) {
		gold = temp_gold;
	}

	int getGold() {
		return gold;
	}

	void setHpp(int temp_hpp) {
		hpp = temp_hpp;
	}

	int getHpp() {
		return hpp;
	}

	void setMpp(int temp_mpp) {
		mpp = temp_mpp;
	}

	int getMpp() {
		return mpp;
	}

	void setMp_str(int temp_mp_str) {
		mp_str = temp_mp_str;
	}

	int getMp_str() {
		return mp_str;
	}

	void setPotions(int temp_potions) {
		potions = temp_potions;
	}

	int getPotions() {
		return potions;
	}

	// Declaration of player
	Player() {

	}

	Player(String temp_name, int temp_str, int temp_hp, int temp_mp,
			int temp_def, int temp_lvl, int temp_max_hp, int temp_max_mp,
			int temp_mp_str, int temp_xp, int temp_gold, int temp_hpp,
			int temp_mpp) {
		name = temp_name;
		str = temp_str;
		mp = temp_mp;
		def = temp_def;
		lvl = temp_lvl;
		max_hp = temp_max_hp;
		max_mp = temp_max_mp;
		mp_str = temp_mp_str;
		xp = temp_xp;
		gold = temp_gold;
		hpp = temp_hpp;
		mpp = temp_mpp;
	}
}